﻿@model PypinBoots.Models.usuario

@{
    ViewBag.Title = "Create";
}

<h2>Crear</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>usuario</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.idEmpresa, "empresa")
        </div>
        <div class="editor-field">
            @Html.DropDownList("idEmpresa", String.Empty)
            @Html.ValidationMessageFor(model => model.idEmpresa)
        </div>

        <div class="editor-label">
            Rol
        </div>
        <div class="editor-field">
                <select class="combobox">
                <option value="S">SuperAdmin</option>
                <option value="A">Admin</option>
                <option value="U">Usuario</option>
            </select>
            @Html.ValidationMessageFor(model => model.Rol)
        </div>

        <div class="editor-label">
            Usuario
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Usuario1)
            @Html.ValidationMessageFor(model => model.Usuario1)
        </div>

        <div class="editor-label">
            Contraseña
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contraseña)
            @Html.ValidationMessageFor(model => model.Contraseña)
        </div>

        <div class="editor-label">
            Email
        </div>
        <div class="editor-field">
            <input name="Email" class="span3" type="email" required>
            @Html.ValidationMessageFor(model => model.EMail)
        </div>

        <div class="editor-label">
            Teléfono
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
            Celular
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Celular)
            @Html.ValidationMessageFor(model => model.Celular)
        </div>

        <div class="editor-label">
            Dirección
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <p>
            <button type="submit" class="btn">Crear</button>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Index")
</div>

@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
*@